package com.stef.saas.ssm.feign.fallback;

import com.stef.saas.common.base.dto.BaseResult;
import com.stef.saas.common.base.enums.ErrorCodeEnum;
import com.stef.saas.ssm.feign.OaClient;
import org.springframework.stereotype.Component;

@Component
public class OaClientFallBack implements OaClient {
    @Override
    public BaseResult echo(String msg) {
        return BaseResult.error(ErrorCodeEnum.OA30000.code(), "[SSM]服务[OA]模块降级返回，此时可以使用兜底数据.");
    }
}
